package com.example.xd.defaultcall.key_board;

import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.xd.defaultcall.R;

import java.util.List;


/**
 * @auther XuDan on 2020/6/29.
 */
public class MyAdapter extends BaseQuickAdapter<NumItem, BaseViewHolder> {


    public MyAdapter(int layoutResId, @Nullable List<NumItem> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NumItem item) {
        TextView tv_num = helper.getView(R.id.tv_num);
        TextView tv_p = helper.getView(R.id.tv_p);
        tv_num.setText(item.num);
        tv_p.setText(item.p);

    }
}
